package com.dqhl.community.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.dqhl.community.R;
import com.dqhl.community.base.BaseActivity;

/**
 * Created by LIENLIN on 2016/9/9.
 */
public class CompleteInfoActivity extends BaseActivity implements View.OnClickListener {

    private ImageView ivTopBack;
    private TextView tvTopTitle;
    private TextView mTvInfo;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_complete_info);

        initView();
    }

    private void initView() {
        ivTopBack = (ImageView) findViewById(R.id.iv_top_back);
        tvTopTitle = (TextView) findViewById(R.id.tv_top_title);
        mTvInfo = (TextView) findViewById(R.id.tv_delete_complete_info);

        tvTopTitle.setText(R.string.txt_complete_info);
        ivTopBack.setVisibility(View.VISIBLE);
        ivTopBack.setOnClickListener(this);
        mTvInfo.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch(view.getId()){
            case R.id.iv_top_back:
                finish();
                break;
            case R.id.tv_delete_complete_info://社区医疗
                overlay(CommuunityHealth.class);
                break;
        }
    }
}
